<template>
  <el-tag
    :type="type"
    :closable="closable"
    @close="$emit('close')"
  >
    {{ name }}
  </el-tag>
</template>

<script>
  export default {
    name: 'CustomTag',
    props: {
      name: {
        type: String,
        required: true,
      },
      type: {
        type: String,
        default: '',
      },
      closable: {
        type: Boolean,
        default: false,
      },
    },
  };
</script>
